/***
 * formSize(String):表单大小 small mini large
 * type(String):表单类型 text | select | date | checkbox | radio
 * inputType(String):input类型
 * label(String):字段名称
 * labelWidth(String):字段宽度 150px
 * placeholder(String):默认显示
 * isReadOnly(Bollean):是否只读
 * isDisabled(Bollean):是否禁止
 * ifCanChecked(Bollean):下拉框的option是否禁止
 * isRequired(Bollean):是否必填
 * unit(String):单位
 * optionList(Array):如果是下拉，复选，单选的数据源
 * keyName(String):有数据源的情况下，绑定的key字段名
 * valName(String):有数据源的情况下，绑定的label字段名
 * maxlength(Number):最大输入长度
 * colSpan(Number):占位符
 * isAppendRightBtn(Boolean):是否显示input右侧的按钮类型
 * appendRightBtnType(String):input右侧的按钮类型
 * appendRightBtnTxt(String):input右侧的按钮文字
 * bindFieldName(String):绑定后段字段名称
 * bindFieldVal(String):双向绑定绑定的具体值，一般用于readonly或者disabled的情况下直接赋值
 * buttonTxt(String):type为button时的按钮内容文字
 * influenceFiledName(String):二级联动赋值数据源所关联的select的后端字段->bindFieldName
 */

//无人设备合同的租赁信息
const wrsbOperateFiledList = [{
  type: 'text',
  label: '设备名称',
  isRequired: true,
  bindFieldVal: "",
  bindFieldName: 'deviceDesc',
}, {
  type: 'text',
  label: '数量',
  inputType: "number",
  isRequired: true,
  bindFieldVal: "",
  bindFieldName: 'deviceNum',
}, {
  type: 'text',
  label: '单个大体面积',
  inputType: "number",
  isRequired: true,
  bindFieldVal: "",
  bindFieldName: 'approximateArea',
}]

//临时场地合同的租赁信息
const lscdLeasePlanFiledList = [{
  type: 'text',
  label: '事项描述',
  isRequired: true,
  bindFieldVal: "",
  bindFieldName: 'itemDesc',
}, {
  type: 'select',
  optionList: [],
  keyName: 'primaryKey',
  valName: 'partitionName',
  label: '区域',
  isRequired: true,
  bindFieldVal: "",
  bindFieldName: 'rentArea',
}, {
  type: 'select',
  optionList: [],
  keyName: 'targetKey',
  valName: 'name',
  label: '活动空间',
  isRequired: false,
  bindFieldVal: "",
  bindFieldName: 'venueKey',
}, {
  type: 'text',
  label: '大体面积',
  unit: "㎡",
  isRequired: true,
  bindFieldVal: "",
  bindFieldName: 'approximateArea',
}, {
  type: 'text',
  label: '合同金额',
  maxlength: 20,
  unit: "元",
  isRequired: true,
  bindFieldVal: "",
  bindFieldName: 'contractAmount',
}]

//临时场地合同的收款计划
const lscdGatheringPlanFiledList = [{
  type: 'date',
  label: '收款时间',
  placeholder: '请选择',
  isRequired: true,
  colSpan: 8,
  bindFieldVal: "",
  bindFieldName: 'fundsDate',
}, {
  type: 'text',
  label: '预估收款金额',
  maxlength: 20,
  unit: "元",
  isRequired: true,
  bindFieldVal: "",
  bindFieldName: 'fundsAmount',
}, {
  type: 'text',
  label: '收款说明',
  isRequired: true,
  bindFieldVal: "",
  bindFieldName: 'fundsDesc',
}]

//其他收入合同的其他信息：
const qtsrOtherPlanFiledList = [{
  type: 'text',
  label: '内容描述',
  isRequired: true,
  colSpan: 8,
  bindFieldVal: "",
  bindFieldName: 'contentDesc',
}]

//其他收入合同的付款计划：
const qtsrPayPlanFiledList = [{
  type: 'date',
  label: '收款时间',
  placeholder: '请选择',
  isRequired: true,
  colSpan: 8,
  bindFieldVal: "",
  bindFieldName: 'fundsDate',
}, {
  type: 'text',
  inputType: "number",
  label: '预估收款金额',
  maxlength: 20,
  unit: "元",
  isRequired: true,
  bindFieldVal: "",
  bindFieldName: 'fundsAmount',
}, {
  type: 'select',
  optionList: [],
  keyName: 'chargeItemKey',
  valName: 'chargeItemAliasName',
  label: '费用项', //收费项
  isRequired: true,
  bindFieldVal: "",
  bindFieldName: 'chargeItemKey',
}, {
  type: 'text',
  label: '收款说明',
  isRequired: true,
  bindFieldVal: "",
  bindFieldName: 'fundsDesc',
}]

//停车场代运营合同的其他信息：
const tccdyyOtherPlanFiledList = [{
  type: 'select',
  optionList: [],
  keyName: 'primaryKey',
  valName: 'parkName',
  label: '停车场',
  isRequired: true,
  colSpan: 8,
  bindFieldVal: "",
  bindFieldName: 'carParkKey',
}, {
  type: 'select',
  optionList: [{
    dictKey: "fixed",
    dictValue: "固定租金"
  }, {
    dictKey: "share",
    dictValue: "分成租金"
  }, {
    dictKey: "fixed_share",
    dictValue: "固定+分成"
  }, {
    dictKey: "get_high",
    dictValue: "取高"
  }],
  keyName: 'dictKey',
  valName: 'dictValue',
  label: '租金模式',
  isRequired: true,
  bindFieldVal: "",
  bindFieldName: 'rentMode',
}, {
  type: 'text',
  inputType: "number",
  label: '租金金额',
  maxlength: 20,
  unit: "元",
  isRequired: true,
  bindFieldVal: "",
  bindFieldName: 'rentAmount',
}, {
  type: 'text',
  inputType: "number",
  label: '分成比例',
  isRequired: true,
  bindFieldVal: "",
  bindFieldName: 'shareProportion',
}, {
  type: 'text',
  inputType: "number",
  label: '分成起点',
  isRequired: true,
  bindFieldVal: "",
  bindFieldName: 'shareStartPoint',
}]

//停车场代运营合同的收款计划
const tccdyyGatheringPlanFiledList = [{
  type: 'date',
  label: '收款时间',
  placeholder: '请选择',
  isRequired: true,
  colSpan: 8,
  bindFieldVal: "",
  bindFieldName: 'fundsDate',
}, {
  type: 'text',
  inputType: "number",
  label: '预估收款金额',
  maxlength: 20,
  unit: "元",
  isRequired: true,
  bindFieldVal: "",
  bindFieldName: 'fundsAmount',
}, {
  type: 'text',
  label: '收款说明',
  isRequired: true,
  bindFieldVal: "",
  bindFieldName: 'fundsDesc',
}]

//支出合同
const zchtPlanFiledList = [{
  type: 'date',
  label: '付款时间',
  placeholder: '请选择',
  isRequired: false,
  colSpan: 8,
  bindFieldVal: "",
  bindFieldName: 'fundsDate',
}, {
  type: 'text',
  inputType: "number",
  label: '付款金额(含税)',
  maxlength: 20,
  unit: "元",
  isRequired: true,
  bindFieldVal: "",
  bindFieldName: 'fundsAmount',
}, {
  type: 'text',
  label: '付款说明',
  isRequired: true,
  bindFieldVal: "",
  bindFieldName: 'fundsDesc',
}, {
  type: 'select',
  optionList: [],
  keyName: 'chargeItemKey',
  valName: 'chargeItemAliasName',
  label: '费用项', //付费项
  placeholder: '请选择',
  isRequired: true,
  bindFieldVal: "",
  bindFieldName: 'chargeItemKey',
}]

//框架类广告的广告位信息
const ggwxxPlanFiledList = [{
    type: 'select',
    optionList: [],
    keyName: 'dictKey',
    valName: 'dictValue',
    label: '资产类型',
    placeholder: '请选择',
    isRequired: true,
    colSpan: 8,
    bindFieldVal: "",
    bindFieldName: 'deviceType',
  }, {
    type: 'select',
    optionList: [],
    keyName: 'primaryKey',
    valName: 'locationDesc',
    label: '选择广告位',
    isRequired: true,
    bindFieldVal: "",
    bindFieldName: 'adKey',
    reasonObj: {
      filedName: "deviceType",
      filedVal: "2"
    }
  }, {
    type: 'text',
    label: 'adType',
    bindFieldVal: "",
    bindFieldName: 'adType',
    reasonObj: {
      filedVal: "hide"
    }
  }, {
    type: 'text',
    inputType: "number",
    label: '广告数量',
    isRequired: true,
    bindFieldVal: "",
    bindFieldName: 'adNum',
  }, {
    type: 'date',
    label: '起租时间',
    isRequired: true,
    bindFieldVal: "",
    bindFieldName: 'rentStartDate',
  },
  {
    type: 'date',
    label: '结束时间',
    isRequired: true,
    bindFieldVal: "",
    bindFieldName: 'rentEndDate',
  }, {
    type: 'text',
    label: '租期',
    placeholder: '自动计算',
    isReadOnly: true,
    bindFieldVal: "",
    bindFieldName: 'rentTerm',
  }, {
    type: 'text',
    inputType: "number",
    label: '合同金额',
    isRequired: true,
    bindFieldVal: "",
    bindFieldName: 'contractAmount',
  },{
    type: 'select',
    optionList: [],
    keyName: 'chargeItemKey',
    valName: 'chargeItemAliasName',
    label: '费用项', //付费项
    placeholder: '请选择',
    isRequired: true,
    bindFieldVal: "",
    bindFieldName: 'adKey',
  }
]

//支出合同
const ggwxxGatherFiledList = [{
  type: 'date',
  label: '付款时间',
  placeholder: '请选择',
  isRequired: false,
  colSpan: 8,
  bindFieldVal: "",
  bindFieldName: 'fundsDate',
}, {
  type: 'text',
  inputType: "number",
  label: '付款金额(含税)',
  maxlength: 20,
  unit: "元",
  isRequired: true,
  bindFieldVal: "",
  bindFieldName: 'fundsAmount',
}, {
  type: 'text',
  label: '付款说明',
  isRequired: true,
  bindFieldVal: "",
  bindFieldName: 'fundsDesc',
}, 
// {
//   type: 'select',
//   optionList: [],
//   keyName: 'chargeItemKey',
//   valName: 'chargeItemAliasName',
//   label: '费用项', //付费项
//   placeholder: '请选择',
//   isRequired: true,
//   bindFieldVal: "",
//   bindFieldName: 'chargeItemKey',
// }
]

//租赁类合同的基本信息 -
const leaseBasePlanFiledList = [{
    type: 'text',
    label: '商铺名称',
    isRequired: true,
    bindFieldVal: "",
    colSpan: 8,
    bindFieldName: 'leaserShopName',
  }, {
    type: 'select',
    optionList: [{
      dictKey: 1,
      dictValue: "是"
    }, {
      dictKey: 0,
      dictValue: "否"
    }],
    keyName: 'dictKey',
    valName: 'dictValue',
    label: '是否主力店',
    isRequired: true,
    bindFieldVal: "",
    bindFieldName: 'ifMainStore',
  }, {
    type: 'select',
    optionList: [],
    keyName: 'primaryKey',
    valName: 'catalogName',
    label: '业态/行业类型',
    isRequired: false,
    bindFieldVal: "",
    bindFieldName: 'industryType',
  }, {
    type: 'select',
    optionList: [],
    keyName: 'primaryKey',
    valName: 'catalogName',
    label: '经营品牌',
    isRequired: false,
    bindFieldVal: "",
    bindFieldName: 'operateBrand',
  },
  {
    type: 'select',
    optionList: [{
      dictKey: "fixed",
      dictValue: "固定租金"
    }, {
      dictKey: "share",
      dictValue: "分成租金"
    }, {
      dictKey: "fixed_share",
      dictValue: "固定+分成"
    }, {
      dictKey: "get_high",
      dictValue: "取高"
    }],
    keyName: 'dictKey',
    valName: 'dictValue',
    label: '租金模式',
    isRequired: true,
    bindFieldVal: "",
    bindFieldName: 'rentMode',
  }
]


export {
  wrsbOperateFiledList,
  lscdLeasePlanFiledList,
  lscdGatheringPlanFiledList,
  qtsrOtherPlanFiledList,
  qtsrPayPlanFiledList,
  tccdyyOtherPlanFiledList,
  tccdyyGatheringPlanFiledList,
  zchtPlanFiledList,
  ggwxxPlanFiledList,
  leaseBasePlanFiledList,
  ggwxxGatherFiledList
}
